LIBM_DIR = $(REP_DIR)/src/lib/libm
LIBS = libc

#
# finding 'math_private.h'
#
INC_DIR += $(LIBM_DIR)/src

#
# finding 'invtrig.h', included by 'e_acosl.c'
#
INC_DIR += $(LIBM_DIR)/ld128

#
# finding 'fpmath.h', included by 'invtrig.h'
#
INC_DIR += $(REP_DIR)/src/lib/libc/include

#
# needed for definition of STRICT_ASSIGN macro, used by 'e_rem_pio2.c'
#
CC_OPT += -DFLT_EVAL_METHOD

FILTER_OUT = s_exp2l.c

#
# Use default warning level rather than -Wall because we do not want to touch
# the imported source code to improve build aesthetics.
#
CC_WARN =

SRC_C  = $(wildcard $(LIBM_DIR)/src/*.c) \
         $(wildcard $(LIBM_DIR)/ld128/*.c)
SRC_C := $(filter-out $(FILTER_OUT),$(notdir $(SRC_C)))

vpath %.c $(LIBM_DIR)/src
vpath %.c $(LIBM_DIR)/ld128
